#include<gtest/gtest.h>
#include<iostream>

int ADD(int num1,int num2){
    return num1+num2;
}
TEST(test_name,Addition_function_value_verification){
    ASSERT_EQ(ADD(10,20),30);//比较相等
    ASSERT_LE(ADD(10,20),40);//比较小于
    EXPECT_EQ(ADD(10,20),40);//比较相等，错误不退出，继续向下执行
    ASSERT_EQ(ADD(10,20),40);//不想等退出
    std::cout<<"..........."<<std::endl;
}
TEST(test_name,String_verification){
    std::string str="Hello c++";
    ASSERT_EQ(str,"Hello c++");//比较相等
    std::cout<<"..........."<<std::endl;
}
int main(int argc,char*argv[]){
    RUN_ALL_TESTS();//自动调用上方测试
    return 0;
}